package com.tutu.common.util;

import java.io.Serializable;

/**
 * 
 * @author tutu
 *	@date 2013-10-17
 *	@company cjcc
 *	@version ssi 1.0
 */
public class JsonReturnObject<T> implements Serializable{

//	是否成功
	private Boolean isSuccess;
//	出错信息
	private String errorMsg;
//	返回对象
	private T returnObject;
	
	public JsonReturnObject(){
		this.isSuccess = Boolean.TRUE;
	}
	
	public JsonReturnObject(Boolean isSuccess, String errorMsg){
		this.isSuccess = isSuccess;
		this.errorMsg = errorMsg;
	}
	
	public Boolean getIsSuccess() {
		return isSuccess;
	}

	public void setIsSuccess(Boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	public String getErrorMsg() {
		return errorMsg;
	}
	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public T getReturnObject() {
		return returnObject;
	}

	public void setReturnObject(T returnObject) {
		this.returnObject = returnObject;
	}
	
}
